<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <!-- 引入 util.js -->
    <script src="util.js"></script>
</head>
<body>
<!-- 为ECharts准备一个具备大小（宽高）的Dom -->
<div id="main" style="width: 100%;height:300%;"></div>
<script type="text/javascript">

      function WriteData(res) {
			var myChart = echarts.init(document.getElementById('main'));

			var datas = JSON.parse(res)

			myChart.setOption({
				tooltip: {},

				xAxis: {
					data: datas.xAxis
				},

				yAxis: {
				},

				series: [{
					name: '售出价格',
					type: 'line',
					data: datas.value
				}]
			})
		}

</script>
</body>
</html>